from django.db import models


class InjuryType(models.Model):
    #RegisterableModel
    injury_type = models.CharField(maxlength=25, core=True)
    def __unicode__(self):
        return unicode(self.injury_type)
    class Admin:
        pass


class InjuryArea(models.Model):
    #RegisterableModel
    injury_area = models.CharField(maxlength=25, core=True)
    def __unicode__(self):
        return unicode(self.injury_area)
    class Admin:
        pass

  #, blank=True, null=True, default=None
class Injury(models.Model):
    #RegisterableModel
    type = models.ForeignKey(InjuryType, core=True)
    area = models.ForeignKey(InjuryArea, core=True)
    def __unicode__(self):
        return unicode(self.type)+": "+unicode(self.area)
    class Admin:
        pass
    class Meta:
        verbose_name = "Injury"
        verbose_name_plural = "Injuries"